import requests
#文件上传的形式：files={"file":(文件open('文件路由'，"rb"))}
files = {'file': ("5407426f7f324a428416458b8de4f5ab.jpg",
                  open('D:/project/p6/p6_education/static/upload/1/5407426f7f324a428416458b8de4f5ab.jpg', 'rb'))}
requests.post('http://localhost:5000/users/upload', data={'userid': 1}, files=files)
